/**
 * Created by Administrator on 2015/8/21.
 */
var React = require('react');

module.exports = Trade = React.createClass({
    componentDidMount: function(){
        $("#"+ this.props.trade).fancybox({
            'width':'75%',
            'height':'75%',
            'autoScale':false,
            'transitionIn':'none',
            'transitionOut':'none',
            'type':'iframe'
        });
    },
    render: function(){
        var trade = this.props.trade;
        var gname = decodeURI(this.props.trade.gname);

        return (
            <div className="dym">
                <div className="am-animation-slide-top  ">
                    <img className={this.props.order == 0?"am-animation-spin":""} src={trade.url} />
                    <div className="am-text-secondary">{trade.tid}</div>
                    <div className="am-text-secondary">{gname}</div>
                </div>
            </div>
        )
    }
});